import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '@/components/Login'
import Index from '@/components/Index'
import DepManager from '@/components/DepManager'
import PowerManager from '@/components/PowerManager'
import RoleManager from '@/components/RoleManager'
import EmpManager from '@/components/EmpManager'
import NoPower from '@/components/NoPower'
import GoodsFenlei from '@/components/GoodsFenlei'
import GoodsGuige from '@/components/GoodsGuige'
import GoodsManager from '@/components/GoodsManager'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Login
    },
    {
      path: '/index',
      component: Index,
      children: [
        {
          path: '/DepManager',
          component: DepManager
        },
        {
          path: '/PowerManager',
          component: PowerManager
        },
        {
          path: '/RoleManager',
          component: RoleManager
        },
        {
          path: '/EmpManager',
          component: EmpManager
        },
        {
          path: '/NoPower',
          component: NoPower
        },
        {
          path: '/Fenlei',
          component: GoodsFenlei
        },
        {
          path: '/GuigeManager',
          component: GoodsGuige
        },
        {
          path: '/GoodsManager',
          component: GoodsManager
        }
      ]
    }
  ]
})
